#include <iostream>
#include <thread>
#include <chrono>
#include "test1.h"
void test(int a, int b)
{
    int aa[10]={0};
    aa[1]=a;
    aa[2]=b;
    for (int i = 0; i < 20; i++)
    {
        std::cout << "Thread " << std::this_thread::get_id() << " executing step 1" << std::endl;
        printf("a=%d\n",a);
        
        std::this_thread::sleep_for(std::chrono::milliseconds(500)); // 模拟工作
    }
}